package com.ecoolex.hotel.saas.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.hotel.saas.entity.PresaleCouponCategory;
import com.ecoolex.hotel.saas.entity.PresaleCouponCategoryExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface PresaleCouponCategoryMapper {
    long countByExample(PresaleCouponCategoryExample example);

    int deleteByExample(PresaleCouponCategoryExample example);

    int deleteByPrimaryKey(Integer categoryId);

    int insert(PresaleCouponCategory record);

    int insertSelective(@Param("record") PresaleCouponCategory record, @Param("selective") PresaleCouponCategory.Column ... selective);

    PresaleCouponCategory selectOneByExample(PresaleCouponCategoryExample example);

    List<PresaleCouponCategory> selectByExample(PresaleCouponCategoryExample example);

    PresaleCouponCategory selectByPrimaryKey(Integer categoryId);

    PresaleCouponCategory selectByPrimaryKeyWithLogicalDelete(@Param("categoryId") Integer categoryId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") PresaleCouponCategory record, @Param("example") PresaleCouponCategoryExample example, @Param("selective") PresaleCouponCategory.Column ... selective);

    int updateByExample(@Param("record") PresaleCouponCategory record, @Param("example") PresaleCouponCategoryExample example);

    int updateByPrimaryKeySelective(@Param("record") PresaleCouponCategory record, @Param("selective") PresaleCouponCategory.Column ... selective);

    int updateByPrimaryKey(PresaleCouponCategory record);

    int batchInsert(@Param("list") List<PresaleCouponCategory> list);

    int batchInsertSelective(@Param("list") List<PresaleCouponCategory> list, @Param("selective") PresaleCouponCategory.Column ... selective);

    int logicalDeleteByExample(@Param("example") PresaleCouponCategoryExample example);

    int logicalDeleteByPrimaryKey(Integer categoryId);
}